-- GENERATED SPELL FOR [Stronglimb Deeproot] --


function spell0_21023(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(11922,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21023', 16500, 1)
end

function spell1_21023(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(12612,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21023', 552, 1)
end

function Sorts_21023(pUnit, Event)
local choix_sorts_21023 = math.random(0, 1)
if choix_sorts_21023 == 0 then
pUnit:RegisterEvent('spell0_21023', 1, 1)
end
if choix_sorts_21023 == 1 then
pUnit:RegisterEvent('spell1_21023', 1, 1)
end
end

function mob21023_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21023', math.random(1500, 3000), 1)
end

function mob21023_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21023_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21023_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21023, 1, 'mob21023_Action')
RegisterUnitEvent(21023, 2, 'mob21023_Leave')
RegisterUnitEvent(21023, 3, 'mob21023_Kill')
RegisterUnitEvent(21023, 4, 'mob21023_Die')
